package com.duan.laugh.gateway.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static com.duan.laugh.common.event.constants.EventConstant.MQ_QUEUE_EVENT;

/**
 *
 * rabbit初始化配置
 */
@Configuration
public class RabbitConfig {

    /**
     * 事件队列
     *
     * @return
     */
    @Bean
    public Queue initEventQueue() {
        return new Queue(MQ_QUEUE_EVENT);
    }

}
